const getDefaultState = () => {
    return {
        details: '',
        title: '',
        type: ''
    }
}

const state = getDefaultState();

const mutations = {
    change: (state, data) => {
        state.details = data.content;
        state.title = data.title;
        state.type = data.type;
    }
}

const action = {
    change({ commit }, content) {
        return new Promise((sovle))
    }
}

export default {
    namespaced: true,
    state,
    mutations
  }